package com.feihong.txgw.json.pay;

import android.text.TextUtils;

import java.util.List;

/**
 * Created by Sabirjan on 2017/8/4.
 * TXGWApp.
 * 飞宏电子
 */

public class JiFenParser {


    /**
     * code : 200
     * msg : 获取信息成功
     * data : {"orderinfo":{"order_sn":"20170809024074665002","name":"100元","price":"100.000","type":"1"},"jifeninfo":{"can_use":[{"point":"1","price":"1"},{"point":"3","price":"3"},{"point":"7","price":"7"},{"point":"10","price":"10"}],"point_info":{"will_point":"120.00","had_point":"210.00"}}}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * orderinfo : {"order_sn":"20170809024074665002","name":"100元","price":"100.000","type":"1"}
         * jifeninfo : {"can_use":[{"point":"1","price":"1"},{"point":"3","price":"3"},{"point":"7","price":"7"},{"point":"10","price":"10"}],"point_info":{"will_point":"120.00","had_point":"210.00"}}
         */

        private OrderinfoBean orderinfo;
        private JifeninfoBean jifeninfo;

        public OrderinfoBean getOrderinfo() {
            return orderinfo;
        }

        public void setOrderinfo(OrderinfoBean orderinfo) {
            this.orderinfo = orderinfo;
        }

        public JifeninfoBean getJifeninfo() {
            return jifeninfo;
        }

        public void setJifeninfo(JifeninfoBean jifeninfo) {
            this.jifeninfo = jifeninfo;
        }

        public static class OrderinfoBean {
            /**
             * order_sn : 20170809024074665002
             * name : 100元
             * price : 100.000
             * type : 1
             */

            private String order_sn;
            private String name;
            private String price;
            private String type;

            public String getOrder_sn() {
                return order_sn;
            }

            public void setOrder_sn(String order_sn) {
                this.order_sn = order_sn;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }
        }

        public static class JifeninfoBean {
            /**
             * can_use : [{"point":"1","price":"1"},{"point":"3","price":"3"},{"point":"7","price":"7"},{"point":"10","price":"10"}]
             * point_info : {"will_point":"120.00","had_point":"210.00"}
             */

            private PointInfoBean point_info;
            private List<CanUseBean> can_use;

            public PointInfoBean getPoint_info() {
                return point_info;
            }

            public void setPoint_info(PointInfoBean point_info) {
                this.point_info = point_info;
            }

            public List<CanUseBean> getCan_use() {
                return can_use;
            }

            public void setCan_use(List<CanUseBean> can_use) {
                this.can_use = can_use;
            }

            public static class PointInfoBean {
                /**
                 * will_point : 120.00
                 * had_point : 210.00
                 */

                private String daifan;
                private String huode;
                private String dongjie;

                public String getDaifan() {
                    return daifan;
                }

                public void setDaifan(String daifan) {
                    this.daifan = daifan;
                }

                public String getHuode() {
                    return huode;
                }

                public void setHuode(String huode) {
                    this.huode = huode;
                }

                public String getDongjie() {
                    return dongjie;
                }

                public void setDongjie(String dongjie) {
                    this.dongjie = dongjie;
                }
            }

            public static class CanUseBean {
                /**
                 * point : 1
                 * price : 1
                 */

                private String point;
                private String price;

                public String getPoint() {
                    return point;
                }

                public void setPoint(String point) {
                    this.point = point;
                }

                public String getPrice() {
                    return price;
                }

                public void setPrice(String price) {
                    this.price = price;
                }
            }
        }
    }
}
